Skip to content

fix: resolve partial verse references in crossref popup via Sword#1342

Merged
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:fix/crossref-popup-partial-refs
Jul 5, 2026
Merged

fix: resolve partial verse references in crossref popup via Sword#1342
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:fix/crossref-popup-partial-refs

Conversation

@LAfricain

Copy link
Copy Markdown
Contributor

fix: resolve partial verse references in crossref popup via Sword

Problem

When a bookmark contains partially specified verse references such as:

Matt.17.20; 18.10; 23.13; Mark.7.15; 9.43,45; ...

the popup menu was unable to resolve partial references like 18.10 without their book context (Matt), causing navigation to random or incorrect verses.

Fix

Instead of manually parsing the verse list string, the popup now passes the full key through Sword's parse_verse_list() engine, which correctly resolves partial references contextually — exactly as is done in the default verse list behavior.

A new C wrapper function main_parse_verse_list() has been added in src/main/sword.cc to expose this C++ backend functionality to the C code in bookmarks_treeview.c.

Changes

  • src/main/sword.h / src/main/sword.cc: new main_parse_verse_list() wrapper
  • src/gtk/bookmarks_treeview.c: replace manual parsing with main_parse_verse_list()

@karlkleinpaste karlkleinpaste merged commit 33e3547 into crosswire:master Jul 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants